﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="BoxScore.Jornada.index" %>
<%@ Register src="../torneo/_info.ascx" tagname="_info" tagprefix="uc1" %>
<%@ Register src="../compartidas/_volver.ascx" tagname="_volver" tagprefix="uc2" %>
<%@ Register src="../compartidas/_publicidadDisponible.ascx" tagname="_publicidadDisponible" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
    <uc3:_publicidadDisponible ID="_publicidadDisponible1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">



    <uc1:_info ID="_info1" runat="server" />
    <br />

    <h2>Jornadas del Torneo</h2>

     
    <uc2:_volver ID="_volver2" runat="server" />

     
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource1" GridLines="None" Width="100%">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="id" SortExpression="id" 
                Visible="False" />
            <asp:TemplateField HeaderText="" ShowHeader="false">
                <ItemTemplate>
                
                    <div>
                        <div>
                            <h2 class="title">Jornada <asp:Label ID="contador" runat="server" 
                                    Text='<%# Eval("counter", "{0}") %>' ></asp:Label>
                                    <br />
                                    <i>
                            <span>
                                <asp:Label ID="Label1" runat="server" 
                                    Text='<%# Eval("finicial", "{0:d}") + " - " + Eval("ffinal", "{0:d}") %>'></asp:Label>          
                            </span></i>
                                    </h2>
                            
                        </div>
                        <div>
                            <asp:HiddenField ID="HiddenField1" runat="server" 
                                Value='<%# Eval("id", "{0}") %>' />
                            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Width="100%" GridLines="None" 
                                DataSourceID="ObjectDataSource1">
                                <Columns>
                                    <asp:TemplateField ShowHeader="False">
                                        <ItemTemplate>
                                            <div>
                                            <center>
                                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                                NavigateUrl='<%# "~/Juego/Detalle.aspx?id=" + Eval("id", "{0}") %>' 
                                                Text='<%# Eval("team_visitor") + " Vs. " + Eval("team_hc") %>'></asp:HyperLink>
                                            </center>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataTemplate>
                                    <center>
                                    <h3>Informacion No Disponible</h3>
                                    </center>
                                </EmptyDataTemplate>
                            </asp:GridView>
                            
                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                                SelectMethod="getGamesByTorneoAndJornada" TypeName="BoxScore.Model.BoxScoreBD">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="HiddenField1" Name="idjornada" 
                                        PropertyName="Value" Type="Int32" />
                                    <asp:QueryStringParameter Name="idtorneo" QueryStringField="torneo" 
                                        Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            
                        </div>
                        
                    </div>
                
                
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    


    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getJornadasByTournament" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="idtorneo" 
                QueryStringField="torneo" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

    


    <uc2:_volver ID="_volver1" runat="server" />

    


</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
